<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <script>
    !function() {
      var i = [{funName: "youDunFaceDetection", param: !0, reFun: !0, staticType: 0}, {
        funName: "youDunIDCard",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "alert", param: !0, reFun: null, staticType: 0}, {
        funName: "config",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "userLogin", param: !0, reFun: !0, staticType: 0}, {
        funName: "scanCode",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "chooseImage", param: !0, reFun: !0, staticType: 0}, {
        funName: "chooseVideo",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "getLocation", param: !0, reFun: !0, staticType: 0}, {
        funName: "choosePhoneContact",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "pay", param: !0, reFun: !0, staticType: 0}, {
        funName: "requireAuth",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "faceDetection", param: !0, reFun: !0, staticType: 0}, {
        funName: "closeWebview",
        param: !1,
        reFun: !1,
        staticType: 0
      }, {funName: "getAuthcode", param: !0, reFun: !0, staticType: 0}, {
        funName: "faceDetection",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "setTitle", param: !0, reFun: !0, staticType: 0}, {
        funName: "loginOut",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "openMap", param: !0, reFun: !0, staticType: 0}, {
        funName: "share",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "makePhoneCall", param: !0, reFun: !0, staticType: 0}, {
        funName: "alert",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "confirmAlert", param: !0, reFun: !0, staticType: 0}, {
        funName: "showToast",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "showLoading", param: !0, reFun: !0, staticType: 0}, {
        funName: "hideLoading",
        param: !1,
        reFun: !1,
        staticType: 0
      }, {funName: "showActionSheet", param: !0, reFun: !0, staticType: 1}, {
        funName: "setTitleBarText",
        param: !0,
        reFun: !0,
        staticType: 0
      }, {funName: "setTitleBarLeftButton", param: !0, reFun: !0, staticType: 1}, {
        funName: "setTitleBarRightButton",
        param: !0,
        reFun: !0,
        staticType: 1
      }, {funName: "downloadfile", param: !0, reFun: !0, staticType: 0}, {
        funName: "collection",
        param: !0,
        reFun: !0,
        staticType: 0
      }];
      window.yl = {
        loaded: 0, readyType: 0, readyList: {}, getSystemInfo: function() {
          var e = window.yluareplace,
            a = {h5ContainerVersion: void 0, appVersion: void 0, systemId: void 0, appPlaform: void 0};
          if(e) {
            try {
              e = JSON.parse(e)
            } catch(e) {
            }
            a.appVersion = e.appVersion, a.h5ContainerVersion = e.h5ContainerVersion, a.systemId = e.systemId, a.appPlaform = e.appPlaform
          } else console.warn("获取容器版本错误");
          return a
        }, hasReady: function() {
          var e = window.yl.readyList;
          for(var a in e) window.jsbridge.add(e[a]), delete window.yl.readyList[a]
        }, readydo: function() {
        }, ready: function(e) {
          this.readydo = e
        }, call: function(e, a, n) {
          var t = function(e) {
            for(var a = 0; a < i.length; a++) {
              var n = i[a];
              if(e === n.funName) return n
            }
            return !1
          }(e);
          if(!t) return console.warn("非法调用"), !1;
          if(t.param && (t.param = a), t.reFun) {
            if(!n) return console.log("需要传入回调"), console.warn("需要传入回调");
            t.reFun = n
          }
          if(window.jsbridge) window.jsbridge.add(t); else {
            var r = "ListItem" + (new Date).getTime();
            this.readyList[r] = t
          }
        }
      }
    }();
  </script>
  <script>
    window.yl.call("hideLoading")
  </script>
  <title></title>
  <style>
    .hairline-remove-right-bottom {
      border-bottom: 0;
    }

    .hairline-remove-right-bottom:after {
      display: none;
    }

    .hairline-remove-right-bottom-bak:after {
      display: none;
    }

    .hairline-remove-left-top:before {
      display: none;
    }

    .am-activity-indicator {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      z-index: 99;
    }

    .am-activity-indicator-spinner {
      display: inline-block;
      width: 40px;
      height: 40px;
      background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-2.125%20-1.875%2064%2064%22%3E%3Cpath%20fill%3D%22%23CCC%22%20d%3D%22M29.875-1.875c-17.673%200-32%2014.327-32%2032s14.327%2032%2032%2032%2032-14.327%2032-32-14.327-32-32-32zm0%2060.7c-15.85%200-28.7-12.85-28.7-28.7s12.85-28.7%2028.7-28.7%2028.7%2012.85%2028.7%2028.7-12.85%2028.7-28.7%2028.7z%22%2F%3E%3Cpath%20fill%3D%22%23108ee9%22%20d%3D%22M61.858%2030.34c.003-.102.008-.203.008-.305%200-11.43-5.996-21.452-15.01-27.113l-.013.026c-.24-.137-.515-.22-.81-.22-.912%200-1.65.738-1.65%201.65%200%20.654.384%201.215.937%201.482%207.963%205.1%2013.247%2014.017%2013.247%2024.176%200%20.147-.01.293-.01.44h.022c0%20.01-.004.02-.004.03%200%20.91.74%201.65%201.65%201.65s1.65-.74%201.65-1.65c0-.06-.012-.112-.018-.167z%22%2F%3E%3C%2Fsvg%3E");
      background-position: 50%;
      background-size: 100%;
      background-repeat: no-repeat;
      -webkit-animation: spinner-anime 1s linear infinite;
      animation: spinner-anime 1s linear infinite;
    }

    .am-activity-indicator-tip {
      font-size: 28px;
      margin-left: 16px;
      color: #000;
      opacity: 0.4;
    }

    .am-activity-indicator.am-activity-indicator-toast {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      text-align: center;
      z-index: 1999;
    }

    .am-activity-indicator.am-activity-indicator-toast .am-activity-indicator-spinner {
      margin: 0;
    }

    .am-activity-indicator.am-activity-indicator-toast .am-activity-indicator-toast {
      display: inline-block;
      position: relative;
      top: 8px;
    }

    .am-activity-indicator-content {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      padding: 30px 30px;
      border-radius: 14px;
      background-clip: padding-box;
      color: #fff;
      background-color: rgba(58, 58, 58, 0.9);
      font-size: 30px;
      line-height: 40px;
    }

    .am-activity-indicator-spinner-lg {
      width: 64px;
      height: 64px;
    }

    @-webkit-keyframes spinner-anime {
      100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }

    @keyframes spinner-anime {
      100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }

  </style>


  <link rel="stylesheet" href="app.css">
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta content="yes" name="apple-touch-fullscreen">
  <meta content="telephone=no,email=no" name="format-detection">

  <script>
    var pixelRatio = 1 / window.devicePixelRatio;
    document.write('<meta name="viewport" content="width=device-width,initial-scale=' + pixelRatio + ",minimum-scale=" + pixelRatio + ",maximum-scale=" + pixelRatio + '" />');
    var html = document.getElementsByTagName("html")[0];
    var pageWidth = html.getBoundingClientRect().width;
    var t = 7.5;
    html.style.fontSize = pageWidth / t + "px";
    window.addEventListener("resize", setSize, false);
    window.addEventListener("orientationchange", setSize, false);

    function setSize() {
      var html = document.getElementsByTagName("html")[0];
      var width = html.getBoundingClientRect().width;
      html.style.fontSize = width / t + "px"
    }
  </script>

</head>
<body>
<div style="display: none"
     class="my-loading-mask am-activity-indicator am-activity-indicator-lg am-activity-indicator-toast">
  <div class="am-activity-indicator-content"><span
    class="am-activity-indicator-spinner am-activity-indicator-spinner-lg" aria-hidden="true"></span><span
    class="am-activity-indicator-toast">载入中...</span></div>
</div>
<div id="root"></div>
<script src="vendor.js"></script>
<script src="app.js"></script>
</body>
<script>
  const e = document.querySelector.bind(document)
  //  hideButton()

  var bindAndroidScroll = function(that) { // that 输入框
    if(myApp.device.android || (myApp.device.ios && myApp.device.osVersion.split('.')[0] * 1 === 7)) {
      // ios7也有类似bug
      setTimeout(function() {
        that.scrollIntoViewIfNeeded();
      }, 500)
    }
  }


  //  e('body').addEventListener('click', function(e) {
  //    var target = e.target || e.srcElement;
  //    const name = target.nodeName
  //    if(name === 'INPUT' && target.type === 'text') {
  //      const ele = document.querySelector('.submit_bottom_button')
  //      if(ele) {
  //        ele.style.position = 'relative'
  //      }
  //    } else {
  //      const ele = document.querySelector('.submit_bottom_button')
  //      if(ele) {
  //        ele.style.position = 'fixed'
  //      }
  //    }
  //  })


  function hideButton() {
    window.yl.call('setTitleBarRightButton', {
      rightButtonShow: false,
      rightButtonTextOpen: false,
      rightButtonText: "菜单",
      rightButtonIcon: "icon-user",
      loadingList: true,
      itemList: [],
    }, {
      onSuccess: function(r) {

        let key = r.param.itemId
        if(key === '0') {

          console.log('debug key', key)
          // const query = queryString.parseUrl().query
          const hash = location.hash.split('?')[1]
          console.log('debug hash', hash)
          const url = `/orders?${hash}`
          console.log('debug url', url)
          location.hash = url


        } else {
          location.href = 'https://activity.96225.com/exthtml/applyCard2/help/help.html'
        }
      }, onFail: function(a) {
        console.log('debug e', e)
      }
    });

  }


</script>
</html>


